//创建路由对象, 并且配置好路由,然后把路由对象导出
import { createRouter, createWebHistory } from "vue-router";


//创建router路由对象
const router = createRouter({
    //路由历史
    history: createWebHistory(),

    routes:[
        {
            path:'/user',
            component:() => import('@/view/UserView.vue')
        },
        {
            path:'/user/edit',
            component:() => import('@/view/UserEdit.vue')
        }
    ]

})


//导出路由对象
export default router;
